<?php foreach($records as $key=>$item){ ?>
<div class="detail_item_shop  border_none">
    <a class="main_img_shop float_l" href="<?php echo get_post_detail_url($item['id']); ?>">
        <img src="<?php echo '.'.$item['image']; ?>" class="show_main_img">
    </a>
    <div class="info_item_shop float_l width_83p">
        <div class="area_sub_info_shop">
            <a href="<?php echo get_post_detail_url($item['id']); ?>">
                <h2 class="width_500"><?php echo $item['name']; ?></h2>
            </a>

            <div class="shop_view_fb">
                <p class="txt_gray mr_bt_5"><strong>ID tin: <?php echo $item['id']; ?></strong></p>
                <span class="txt_gray float_l"><?php echo date('H:s:m  |  d.m.Y',$item['createdTime']) ?>&nbsp; - &nbsp;</span>
                <span class="view_item"></span><b class="txt_gr_bold float_l"><?php echo $item['hit'] ?>&nbsp;- &nbsp;</b>
                <span class="feedback_item"></span><b class="txt_gr_bold float_l">4</b>
                <div class="float_r mr_r_10 all_event_item">
                    <a href="/mng_item_shop.html?action=move_top&amp;id=1513646" class="evn_up_item" title=" Chuyển lên trên cùng trong Shop!"></a>
                    |
                    &nbsp;<a onclick="if(!confirm('Bạn có chắc muốn xóa không?')){return false};" href="mng_item_shop.html?cmd=list_item&amp;action=delete_item&amp;id=1513646&amp;sec_key=365909dd629ba00109a52ea7feb97bfa" title="Xóa tin">Xóa</a>&nbsp;

                </div>
            </div>
        </div>
        <div class="area_evn_item_shop" style="margin-top: 0;">
            <span class="s_h_25"></span>
            <a title="Sửa tin" href="<?php echo site_url('post/edit/'.$item['id']); ?>" target="_blank" class="evn_item_shop float_l" style="display:block;">Sửa</a>
            <a href="mng_item_shop.html?cmd=list_item&amp;action=hide_item&amp;id=1513646&amp;sec_key=365909dd629ba00109a52ea7feb97bfa" title="Ẩn tin" class="evn_item_shop float_l" style="display:block;">Ẩn tin</a>
            <a href="javascript:void(0);" onclick="ebItem.upItem(1513646)" class="evn_item_shop float_l" style="display:block;">Up tin</a>
            <a onclick="ebUser.schedule_config(1513646,0);" href="javascript:void(0)" class="evn_item_shop float_l" style="display:block;">Sửa lịch up tin</a>
            <a onclick="ebUser.schedule_up(1513646,0);" href="javascript:void(0)" class="evn_item_shop float_l" style="display:block;">Xóa lịch up tin</a>
        </div>
    </div>
    <div class="clearfix"></div>
</div>
<?php	} ?>

    <div class="pagination borderTop">
        <?php  echo $pagination; ?>
    </div>
